﻿Public Class Usuario
    Public Sub New()
        _reserva = New Collection
    End Sub

    Private _idusuario As String
    Public Property idusuario() As String
        Get
            Return _idusuario
        End Get
        Set(ByVal value As String)
            _idusuario = value
        End Set
    End Property

    Private _nombre As String
    Public Property nombre() As String
        Get
            Return _nombre
        End Get
        Set(ByVal value As String)
            _nombre = value
        End Set
    End Property

    Private _ap_paterno As String
    Public Property ap_paterno() As String
        Get
            Return _ap_paterno
        End Get
        Set(ByVal value As String)
            _ap_paterno = value
        End Set
    End Property


    Private _ap_materno As String
    Public Property ap_materno() As String
        Get
            Return _ap_materno
        End Get
        Set(ByVal value As String)
            _ap_materno = value
        End Set
    End Property



    Private _edad As Integer
    Public Property edad() As Integer
        Get
            Return _edad
        End Get
        Set(ByVal value As Integer)
            _edad = value
        End Set
    End Property


    Private _usuario As String
    Public Property usuario() As String
        Get
            Return _usuario
        End Get
        Set(ByVal value As String)
            _usuario = value
        End Set
    End Property


    Private _contraseña As String
    Public Property contraseña() As String
        Get
            Return _contraseña
        End Get
        Set(ByVal value As String)
            _contraseña = value
        End Set
    End Property


    Private _direccion As String
    Public Property direccion() As String
        Get
            Return _direccion
        End Get
        Set(ByVal value As String)
            _direccion = value
        End Set
    End Property


    Private _distrito As String
    Public Property distrito() As String
        Get
            Return _distrito
        End Get
        Set(ByVal value As String)
            _distrito = value
        End Set
    End Property


    Private _telefono As String
    Public Property telefono() As String
        Get
            Return _telefono
        End Get
        Set(ByVal value As String)
            _telefono = value
        End Set
    End Property


    Private _email As String
    Public Property email() As String
        Get
            Return _email
        End Get
        Set(ByVal value As String)
            _email = value
        End Set
    End Property


    Private _sexo As String
    Public Property sexo() As String
        Get
            Return _sexo
        End Get
        Set(ByVal value As String)
            _sexo = value
        End Set
    End Property


    Private _reserva As Collection
    Public Property reserva() As Collection
        Get
            Return _reserva
        End Get
        Set(ByVal value As Collection)
            _reserva = value
        End Set
    End Property

    Public Sub agregarReserva(ByVal p As Reserva)
        _reserva.Add(p)
    End Sub


End Class
